<?php 
require_once('../../libraryfiles/config.php');
$sql = "DELETE FROM ".Tbluser::Tbluser." WHERE ".Tbluser::id." IN"."(".@$_GET['checkId'].")";
$sql_image = mysql_query("SELECT *FROM tblimage WHERE product_id IN ('".@$_GET['checkId']."')");
while ($imgLinks = mysql_fetch_object($sql_image)){
		unlink('../../product/images/'.$imgLinks->images);
		unlink('../../product/images/'.$imgLinks->thumbnail);
		unlink('../../product/images/'.$imgLinks->original_img);
	}
mysql_query("DELETE FROM tblimage WHERE product_id IN('".@$_GET['checkId']."')");
mysql_query("DELETE FROM tblproduct WHERE owner IN ('".@$_GET['checkId']."')");
mysql_query("DELETE FROM tblproduct_in_pharmacy WHERE pharmacy_id IN('".@$_GET['checkId']."')");
$result= mysql_query($sql);
if($result==true){
	$idp = explode(',',$_GET['checkId']);?>
	<script type="text/javascript">
		$(document).ready(function(){
		<?php foreach ($idp as  $value) {?>
			$("#user<?php echo $value;?>").fadeOut();
		<?php } ?>
		});
	</script>
	<?php
} else {
}